// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Fluent;
using Elastic.Clients.Elasticsearch.Serialization;
using Elastic.Transport.Products.Elasticsearch;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.IndexManagement;

public sealed partial class DataStreamsStatsResponse : ElasticsearchResponse
{
	/// <summary>
	/// <para>Total number of backing indices for the selected data streams.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("backing_indices")]
	public int BackingIndices { get; init; }

	/// <summary>
	/// <para>Total number of selected data streams.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("data_stream_count")]
	public int DataStreamCount { get; init; }

	/// <summary>
	/// <para>Contains statistics for the selected data streams.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("data_streams")]
	public IReadOnlyCollection<Elastic.Clients.Elasticsearch.IndexManagement.DataStreamsStatsItem> DataStreams { get; init; }

	/// <summary>
	/// <para>Contains information about shards that attempted to execute the request.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("_shards")]
	public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; }

	/// <summary>
	/// <para>Total size, in bytes, of all shards for the selected data streams.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("total_store_size_bytes")]
	public long TotalStoreSizeBytes { get; init; }

	/// <summary>
	/// <para>Total size of all shards for the selected data streams.<br/>This property is included only if the `human` query parameter is `true`</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("total_store_sizes")]
	public Elastic.Clients.Elasticsearch.ByteSize? TotalStoreSizes { get; init; }
}